ngl: Use fp16 for colors
authorMatthias Clasen <mclasen@redhat.com>
Wed, 7 Apr 2021 01:55:50 +0000 (21:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 8 Apr 2021 01:30:43 +0000 (21:30 -0400)
commit8b1fcb58e84341913c6fc0d2d8414688aeae26af
treec3a8ed7b57ef636de458c134f9ffb0b52079252d
parentcce36ae701571753094c8ab9892c69e0bf5fb55e
ngl: Use fp16 for colors

This reduces the size of our Vertex struct from
48 to 32 bytes. It would be nicer if we could store
the colors in fp16 format in the rendernodes, and
avoid conversion here. But this is still good.
gsk/meson.build
gsk/ngl/fp16private.h [new file with mode: 0644]
gsk/ngl/gsknglcommandqueue.c
gsk/ngl/gsknglrenderjob.c
gsk/ngl/gskngltypesprivate.h